<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script charset="utf-8" src="eweb/kindeditor.js"></script>
<script type="text/javascript"> 
function show_help()
{
   mytop=(screen.availHeight-430)/2;
   myleft=(screen.availWidth-800)/2;
   window.open("admin.php?ac=view&fileurl=help&helpid=<?=$fileurl?>","","height=470,width=800,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body class="bodycolor">
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建工作流程</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span style="font-size:12px;"><a href="#" onClick="show_help()" style="font-size:12px;">使用帮助文档？</a>&nbsp;|&nbsp;
	<a href="http://bbs.515158.com/" target="_blank" style="font-size:12px;">使用遇到问题？</a>&nbsp;|&nbsp;
	<a href="admin.php?ac=workadd&fileurl=<?=$fileurl?>" style="font-size:12px;">返回列表页</a><img src="template/default/content/images/f_ico.png" align="absmiddle"></span>
    </td>
  </tr>
</table>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.userkey.value=="")
   { alert("审批人员不能为空！");
     document.save.userkey.focus();
     return (false);
   }
   if(document.save.number.value=="")
   { alert("流水单号不能为空！");
     document.save.number.focus();
     return (false);
   }
   if(document.save.title.value=="")
   { alert("工作流名称不能为空！");
     document.save.title.focus();
     return (false);
   }
<?
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."workclass_form where type_id='".$_GET["workclasstype"]."' and template_id='".$_GET["worktemplate"]."' and type!='6' ORDER BY id Asc");
	while ($row = $db->fetch_array($query)) {
		if($row["confirmation"]=='1'){
?>

if(document.save.<?=$row["inputname"]?>.value=="")
   { alert("<?=$row["formname"]?>不能为空！");
     document.save.<?=$row["inputname"]?>.focus();
     return (false);
   }
   
<?php
	}
}
?>
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>
<form name="save" method="post" action="?ac=add&do=tplsave&fileurl=work">
	<input type="hidden" name="savetype" value="add" />
	<input type="hidden" name="workclasstype" value="<?=$_GET["workclasstype"]?>" />
	<input type="hidden" name="worktemplate" value="<?=$_GET["worktemplate"]?>" />
	<input type="hidden" name="title" value="流水号<?=$number?><?=$tpl['title']?>" />
	<input type="hidden" name="number" value="<?=$number?>" />
<table style=" background:#FFFFFF;"  align="center">
    <tr align="center">
      <td colspan="4" nowrap height="35" >
<style> 
<!--table
	{mso-displayed-decimal-separator:"\.";
	mso-displayed-thousand-separator:"\,";}
@page
	{margin:.75in .7in .75in .7in;
	mso-header-margin:.3in;
	mso-footer-margin:.3in;}
.font7
	{color:windowtext;
	font-size:9.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:宋体;
	mso-generic-font-family:auto;
	mso-font-charset:134;}
tr
	{mso-height-source:auto;
	mso-ruby-visibility:none;}
col
	{mso-width-source:auto;
	mso-ruby-visibility:none;}
br
	{mso-data-placement:same-cell;}
.style0
	{mso-number-format:General;
	text-align:general;
	vertical-align:middle;
	white-space:nowrap;
	mso-rotate:0;
	mso-background-source:auto;
	mso-pattern:auto;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:宋体;
	mso-generic-font-family:auto;
	mso-font-charset:134;
	border:none;
	mso-protection:locked visible;
	mso-style-name:常规;
	mso-style-id:0;}
td
	{mso-style-parent:style0;
	padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:宋体;
	mso-generic-font-family:auto;
	mso-font-charset:134;
	mso-number-format:General;
	text-align:general;
	vertical-align:middle;
	border:none;
	mso-background-source:auto;
	mso-pattern:auto;
	mso-protection:locked visible;
	white-space:nowrap;
	mso-rotate:0;}
.xl65
	{mso-style-parent:style0;
	color:windowtext;
	font-size:14.0pt;
	text-align:left;
	border:.5pt solid windowtext;}
.xl66
	{mso-style-parent:style0;
	color:windowtext;
	font-size:14.0pt;
	text-align:center;
	border:.5pt solid windowtext;}
.xl67
	{mso-style-parent:style0;
	color:windowtext;
	font-size:14.0pt;
	border:.5pt solid windowtext;}
.xl68
	{mso-style-parent:style0;
	font-size:14.0pt;
	border:.5pt solid windowtext;}
.xl69
	{mso-style-parent:style0;
	font-size:14.0pt;
	text-align:left;}
.xl70
	{mso-style-parent:style0;
	font-size:18.0pt;
	text-align:center;
	border:.5pt solid windowtext;}
.xl71
	{mso-style-parent:style0;
	font-size:14.0pt;
	border-top:.5pt solid windowtext;
	border-right:none;
	border-bottom:.5pt solid windowtext;
	border-left:.5pt solid windowtext;}
.xl72
	{mso-style-parent:style0;
	font-size:18.0pt;
	border-top:.5pt solid windowtext;
	border-right:none;
	border-bottom:.5pt solid windowtext;
	border-left:none;}
.xl73
	{mso-style-parent:style0;
	font-size:18.0pt;
	border-top:.5pt solid windowtext;
	border-right:.5pt solid windowtext;
	border-bottom:.5pt solid windowtext;
	border-left:none;}
ruby
	{ruby-align:left;}
rt
	{color:windowtext;
	font-size:9.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:宋体;
	mso-generic-font-family:auto;
	mso-font-charset:134;
	mso-char-type:none;
	display:none;}
-->
</style>
<table x:str border=0 cellpadding=0 cellspacing=0 width=780 style='border-collapse:
 collapse;table-layout:fixed;width:586pt'>
 <col width=102 style='mso-width-source:userset;mso-width-alt:3264;width:77pt'>
 <col width=110 style='mso-width-source:userset;mso-width-alt:3520;width:83pt'>
 <col width=102 style='mso-width-source:userset;mso-width-alt:3264;width:77pt'>
 <col width=111 style='mso-width-source:userset;mso-width-alt:3552;width:83pt'>
 <col width=99 style='mso-width-source:userset;mso-width-alt:3168;width:74pt'>
 <col width=116 style='mso-width-source:userset;mso-width-alt:3712;width:87pt'>
 <col width=140 style='mso-width-source:userset;mso-width-alt:4480;width:105pt'>
 <tr height=30 style='height:22.5pt'>
  <td colspan=7 height=50 class=xl70 style='width:586pt'>试剂耗材申购单
    <ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
 </tr>
 <tr height=30 style='height:22.5pt'>
  <td colspan=7 height=30 class=xl71 style='border-right:.5pt solid black;
  height:22.5pt'>申购人：<span
  style='mso-spacerun:yes'><?=GET_INC_USER_NAME($_USER->id)?>&nbsp;&nbsp;
  </span>日 期：<span
  style='mso-spacerun:yes'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_mydate')?></span>项目组：<span
  style='mso-spacerun:yes'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_Project',100,20)?>
  </span>GMP <?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_types')?><ruby><font class="font7"><rt class=font7></rt></font></ruby></td>
 </tr>
 <tr height=25 style='height:18.75pt'>
  <td height=25 class=xl65 style='height:18.75pt;border-top:none'>公司名称<ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
  <td class=xl66 style='border-top:none;border-left:none'>物品名称<ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
  <td class=xl66 style='border-top:none;border-left:none'>货号<ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
  <td class=xl66 style='border-top:none;border-left:none'>规格<ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
  <td class=xl66 style='border-top:none;border-left:none'>数量<ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
  <td class=xl66 style='border-top:none;border-left:none'>报价<ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
  <td class=xl66 style='border-top:none;border-left:none'>用途<ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
 </tr>
 
 <? for($i=0;$i<15;$i++){?>
 <tr height=25 style='height:18.75pt'>
  <td height=25 class=xl67 style='height:18.75pt;'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_companyname',80,20)?></td>
  <td height=25 class=xl67 style='height:18.75pt;'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_prodname',80,20)?></td>
  <td height=25 class=xl67 style='height:18.75pt;'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_Item',80,20)?></td>
  <td height=25 class=xl67 style='height:18.75pt;'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_Specification',80,20)?></td>
  <td height=25 class=xl67 style='height:18.75pt;'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_number',80,20)?></td>
  <td height=25 class=xl67 style='height:18.75pt;'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_price',80,20)?></td>
  <td height=25 class=xl67 style='height:18.75pt;'><?=get_work_tpl_db($tpl['workclasstype'],$tpl['id'],'_Use',80,20)?></td>
 </tr>
 
<? }?>
 
 
 
 
 
 
 
 
 
 <tr height=18 style='height:13.5pt'>
  <td height=18 colspan=7 style='height:13.5pt;mso-ignore:colspan'></td>
 </tr>
 <tr height=25 style='height:18.75pt'>
  <td height=25 colspan=4 style='height:18.75pt;mso-ignore:colspan'></td>
  <td colspan="3" class=xl69>申购人：<ruby><font class="font7"><rt class=font7></rt></font></ruby>    <?=GET_INC_USER_NAME($_USER->id)?></td>
  </tr>
 <tr height=18 style='height:13.5pt'>
  <td height=18 colspan=7 style='height:13.5pt;mso-ignore:colspan'></td>
 </tr>
 <tr height=25 style='height:18.75pt'>
  <td height=25 colspan=4 style='height:18.75pt;mso-ignore:colspan'></td>
  <td class=xl69 colspan=3 style='mso-ignore:colspan'>上级主管：<?php
	  $blog=$db->fetch_one_array("SELECT workuser,id FROM ".DB_TABLEPRE."workclass_flow WHERE template_id='".$_GET["worktemplate"]."' and type_id='".$_GET["workclasstype"]."' and number='2' ORDER BY id desc LIMIT 1");
	 if($blog['flowtype']=='2'){
	 	get_oa_member_public(1,"userkey",$blog["workuser"],"",80,20);
	 }else{
		get_oa_member_public(1,"userkey",$blog["workuser"],"+选择人员",120,20);
	 }
	 ?>
	 <br>
	 <?php get_sms_info_phone_box("","shownamemaster")?>
	 <input type="hidden" name="flowid" value="<?=$blog["id"]?>" /></td>
  </tr>
 <tr height=18 style='height:13.5pt'>
  <td height=18 colspan=7 style='height:13.5pt;mso-ignore:colspan'></td>
 </tr>
 <tr height=25 style='height:18.75pt'>
  <td height=25 colspan=4 style='height:18.75pt;mso-ignore:colspan'></td>
  <td class=xl69 colspan=3 style='mso-ignore:colspan'>技术总监审批：<ruby><font
  class="font7"><rt class=font7></rt></font></ruby></td>
  </tr>
 <![if supportMisalignedColumns]>
 <tr height=0 style='display:none'>
  <td width=103 style='width:77pt'></td>
  <td width=111 style='width:83pt'></td>
  <td width=103 style='width:77pt'></td>
  <td width=111 style='width:83pt'></td>
  <td width=99 style='width:74pt'></td>
  <td width=49 style='width:87pt'></td>
  <td width=205 style='width:105pt'></td>
 </tr>
 <![endif]>
</table>


</td>
</tr>
    <tr align="center" class="TableControl">
      <td colspan="4" nowrap height="35">
<input type="button" value="保存" class="BigButtonBHover" onClick="sendForm();"> </td>
    </tr>
  </table>
  
</form>

 
</body>
</html>
